package day20171220;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by Administrator on 2017-12-20.
 */
public class Test01 {

    public static void main(String[] args) {


        String target = "面向对象程序设计Java2016级信本2班1606101169张三作业1.docx";


        Matcher matcher = Pattern.compile("Java(\\d+)级信本2班(\\d+)张三").matcher(target);

        while(matcher.find()){

            System.out.println(matcher.group(1));
            System.out.println(matcher.group(2));
        }







    }
}
